/*
 * This source code is part of TWaver 4.0
 *
 * Serva Software PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 * Copyright 2002 - 2011 Serva Software. All rights reserved.
 */

package demo.editor.drawing.element;

import java.awt.Color;

import twaver.ResizableNode;
import twaver.TWaverConst;

public class Rectangle extends ResizableNode{
	
	public Rectangle(){
		this.init();
	}
	public Rectangle(Object id){
		super(id);
		this.init();
	}
	
	private void init(){
		this.putBorderColor(Color.WHITE);
		this.putCustomDraw(true);
		this.putCustomDrawShapeFactory(TWaverConst.SHAPE_RECTANGLE);
		this.putCustomDrawGradientFactory(TWaverConst.GRADIENT_EXTEND_W);
		this.putCustomDrawOutline(false);
		this.putCustomDrawFillColor(Color.BLUE);
	}
}